// 设备告警次数

import { barParams } from './barParams.js'

export const chartAlarmBar = (chartData) => {
  const { clientWidth:w } = document.body

  const alarmOptionData = []
  const xOptionData = []
  chartData.forEach(item => {
    alarmOptionData.push(item.total),
    xOptionData.push(item.name)
  })

  return barParams(xOptionData, alarmOptionData, '告警次数', 'rgba(249,84,3,0.8)')
  
}